import urllib.request
from urllib import request

# response = urllib.request.urlopen('http://www.baidu.com')
response = request.urlopen('http://www.baidu.com')
html = response.read().decode('utf8')
print(response)
print(html)
